package com.ld.control.business.variable.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 变量实例表
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-23
 */
@Data
public class VariableExampleResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long variableId;

    @Schema(description = "任务实例id")
    private Long taskExampleId;

    @Schema(description = "子任务实例id")
    private Long subTaskExampleId;

    @Schema(description = "任务code")
    private String taskExampleCode;

    @Schema(description = "任务实例名称")
    private String taskExampleName;

    @Schema(description = "子任务实例名称")
    private String subTaskExampleName;

    @Schema(description = "变量名称")
    private String name;

    @Schema(description = "变量作用域：0全局变量，1任务变量，2子任务变量")
    private Integer scope;

    @Schema(description = "变量值类型：参考代码里面参数枚举")
    private String valueType;

    @Schema(description = "变量值")
    private String value;

    @Schema(description = "变量默认值")
    private String defaultValue;

    @Schema(description = "数组自动偏移:0不支持，1支持")
    private Integer offsetFlag;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;
}
